-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bookmark: Add bookmark support #17700
bookmark: Add bookmark support #17700
Conversation
Thanks for this! I think bookmarks should be based on Anchors, not on row/column, so that as the code is edited the bookmarks stay in the "same place". In order to make this work reliably, we'd either have to ensure that creating a bookmark keeps the file open, so the Bookmark might end up being We also need to think about multi-buffers. If you create a book mark from a project search, and then go to that bookmark, should it take you to that position in the underlying buffer, or in the multibuffer? |
I think there is an use case, we cannot easy toggle the bookmark remove, if we based on Anchors.
I had check some other implementation, IMO, bookmarks should exist even if the current buffer is closed, if using |
I think removing Anchors can still work, you just need to convert the anchor back to a point when checking? If we retain the buffer in the bookmark store as a |
I don't mean user cannot can remove bookmark, I thought when user toggle remove a bookmark, he should first find the correct point, then can remove it. It's not better UX.
Ahh, thanks, i'm misunderstood. I will convert using |
This looks quite stale, so I'll close this. |
Currently bookmark can work, and had something not done.
Want to get some feedback and suggestion.
Release Notes: